# 列表遍历  while循环 下标
list1 = ['python', 'java', 'java1','java2']
list1[0]
list1[1]
list1[2]

# 获取列表的长度
# print(len(list1))
i = 0
while i < len(list1):
    print(list1[i])
    i += 1
i = 0
'''
# 循环次数, 静态的数字
i = 0
while i < 6:
    print(list1[i])
    i += 1
'''